<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>

<div class="span10" id="datacontent">
    <ul class="breadcrumb">
        <li><a href="/user/index/index">用户模块</a> <span class="divider">/</span></li>
        <li class="active">考试计划</li>
    </ul>
    <ul class="nav nav-tabs">
        <li class="active">
            <a href="javascript:;" onclick="javascript:openall();">考试计划</a>
        </li>
    </ul>
    <legend>计划列表</legend>
    <form action="/user/discuss/publish" id="checkPush" method="post">
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="80">ID</th>
                <th>uid</th>
                <th>职业</th>
                <th>是否考过雅思</th>
                <th>目标分</th>
                <th>计划考试时间</th>
                <th>计划出国时间</th>
                <th>目标国家</th>
                <th>记录时间</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($data as $v) { ?>
                <tr>
                    <td><?php echo $v['id']?></td>
                    <td><?php echo $v['uid']?></td>
                    <td><?php echo $v['career']?></td>
                    <td><?php echo $v['status']==1?'考过':'未考过'?></td>
                    <td><?php echo $v['target']?></td>
                    <td><?php echo $v['testTime']?></td>
                    <td><?php echo $v['applyTime']?></td>
                    <td><?php echo $v['place']?></td>
                    <td><?php echo date("Y-m-d H:i:s",$v['createTime'])?></td>
                    <td>
                        <div>
                        </div>
                    </td>
                </tr>
            <?php }?>
            </tbody>
        </table>
    </form>
    <div class="pagination pagination-right">
        <?php use yii\widgets\LinkPager;?>
        <?php echo LinkPager::widget([
            'pagination' => $page,
        ])?>
    </div>
</div>
<script type="text/javascript">

    $(function() {
        $(".checkAll").change(function () {
            var sss = $(this).is(":checked");
            if(sss){
                $(".childCheck").prop("checked", true);
            }else{
                $(".childCheck").prop("checked", false);
            }
        })

        $(".push").on('click',function(){
            $("input[name='status']").val(1);
            $("#checkPush").submit();
        })
        $(".noPush").on('click',function(){
            $("input[name='status']").val(0);
            $("#checkPush").submit();
        })
    })
</script>